package net.yla.smartbus.module.ba.dept.query;

import lombok.Data;
import net.yla.smartbus.core.base.BaseQuery;
import org.apache.commons.lang.StringUtils;

import java.io.Serializable;
import java.util.List;

/**
 * @description:
 * @author: Yee
 * @date: 2021/6/17 14:43
 */
@Data
public class DeptQuery extends BaseQuery implements Serializable {

    /**
     * 分组id
     */
    private Integer groupId;

    /**
     * 部门ID
     */
    private Integer deptId;

    /**
     * 部门名称
     */
    private String deptName;

    /**
     * 分组id集合
     */
    private List<Integer> groupIdList;


    public String getDeptName() {
        return StringUtils.isNotBlank(deptName) ? deptName.trim() : null;
    }

}
